// pages/detail/detail.js
import {detailListss} from "../../utils/interface"
Page({
  data: {
    active: 0,
    show: false,
  },
  async onLoad(e) {
    let id = e.id
    let {data:res} = await detailListss({id}).catch((err)=>err)
    // console.log(res);
    let detailList = res.data.pics2     //图
    let detailzi = res.data.basicInfo   //字
    let detail = res.data
    this.setData({
      detailList,
      detailzi,
      detail
    })
  },
  showPop(){
    this.setData({
      show: true,
    });
  },
})